package com.joymeter.data.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.joymeter.data.entity.DeviceInfo;

import java.util.List;

/**
 * @ClassName DeviceInfoDao
 * @Description TODO
 * 设备信息
 * 使用xml完成映射关系
 * @Author liang
 * @Date 2018/8/12 14:47
 * @Version 1.0
 **/
public interface DeviceInfoDao  extends BaseMapper<DeviceInfo> {
    DeviceInfo selectDeviceInfoById(String deviceId);
    DeviceInfo selectDeviceInfoByValId(String valveId);
    Integer  updateDeviceInfo(DeviceInfo deviceInfo);
    Integer getDeviceCount(DeviceInfo deviceInfo);
    List<DeviceInfo> selectNoneDateADay();
    void insertDeviceInfo(DeviceInfo deviceInfo);
    boolean deleteDeviceInfoById(String deviceId);
    DeviceInfo selectByRand();
}
